package com.pwt.entity;

import com.pwt.annotation.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;

import lombok.EqualsAndHashCode;
import lombok.Data;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;


/**
 * ProductLineMachine
 *
 * @author auto generated
 * @date 2021-09-03 11:13:59
 */
@EqualsAndHashCode
@Data
@Entity
@Table(name = "[what_line_machine]")
@Schema(name = "WhatLineMachine")
@DynamicInsert
@DynamicUpdate
public class WhatLineMachine   {

	@Id
	@GeneratedValue(generator="system_uuid")
	@GenericGenerator(name="system_uuid",strategy="uuid")
	@Column(name = "id")
	@Schema(description = "ID")
	@NotBlank(groups = Update.class,message = "修改时必传")
	protected String id;

	/**
	 * productLineId
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "whatLineId",description = "whatLineId")
	@Column(name = "what_line_id", nullable = true, length = 32)
	private String whatLineId;

	/**
	 * machineId
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "machineId",description = "machineId")
	@Column(name = "machine_id", nullable = true, length = 32)
	private Integer machineId;
}
